package com.ray.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ray.bean.UserAddress;
import com.ray.service.OrderService;
import com.ray.service.UserService;

import java.util.List;

public class OrderServiceImpl implements OrderService {

    @Reference
    UserService userService;

    public  List<UserAddress> initOrder(Integer userId) {
        //查询用户地址
        return  userService.getUserAddress(userId);
    }
}
